// 数，完整

#include <iostream>
using namespace std;

int main() {
    char ch = 'y';

    while (ch == 'y') {
        cout << "请输入一个1~1000之间的数: ";

        int number;
        cin >> number;


        if (number > 0 && number < 1001) {
            int mod2 = number % 2;
            int mod3 = number % 3;

            if (mod2 == 0 || mod3 == 0) {
                cout << "输入的数能被以下数整除";

                if (mod2 == 0) {
                    cout << " 2!";
                }
                if (mod3 == 0) {
                    cout << " 3!";
                }
                cout << "\n";
            }
        }
        else {
            cout << "输入的数超出了返回!\n";
        }

        cout << "再运行一次吗, y=是, n=否: ";
        cin >> ch;
    }
    cout << "再见\n";
}